#!/bin/bash
#untar input file into workdir
tarfile=$1
workdir="./monworkdir"
mkdir -p $workdir
tar xf $1 -C $workdir
# create result file
result_file="result.log"
echo > ${result_file}
script=""
for checkmetricscript in `ls $workdir/metric_*.sh` 
do
    $checkmetricscript  >> ${result_file}
done
